{include file=top.html}
<div id="header" class="w-full">
	<div class="top-ads w" area="top-ads" widget_type="area"> 
		<!--{widgets page=index area=top-ads}--> 
	</div>
	<div class="shop-t w clearfix pb10 mb10 mt5">
		<div class="logo mt10"> <a href="{$site_url}" title="{$site_title}"><img alt="{$site_title}" src="{$site_logo}" /></a> </div>
		<div class="top-search"> 
			
		<ul class="top-search-tab clearfix">
            <li {if $smarty.get.act neq 'store' && $smarty.get.act neq 'groupbuy'}class="current"{/if} id="index">
            	<a href="javascript:;">{$lang.goods}</a><b class="rc-lt"></b><b class="rc-rt"></b></li>
            <li {if $smarty.get.act eq 'store'}class="current"{/if} id="store">
            	<a href="javascript:;">{$lang.store}</a><b class="rc-lt"></b><b class="rc-rt"></b></li>
            <!--<li {if $smarty.get.act eq 'groupbuy'}class="current"{/if} id="groupbuy">
            	<a href="javascript:;">{$lang.sgroupbuy}</a><b class="rc-lt"></b><b class="rc-rt"></b>
            </li>
			 -->
         </ul>
        
			<div class="top-search-box clearfix">
				<div class="form-fields">
					<form method="GET" action="{url app=search}">
						<input type="hidden" name="app" value="search" />
						<input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{elseif $smarty.get.act eq 'groupbuy'}groupbuy{else}index{/if}" />
						<input type="text"   name="keyword" value="{$smarty.get.keyword}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{elseif $smarty.get.act eq 'groupbuy'}groupbuy{else}index{/if}_bj {/if}" />
						<input type="submit" value="{$lang.search}" class="submit" hidefocus="true" />
					</form>
				</div>
			</div>
			<div class="top-search-keywords"> <span>{$lang.hot_search}{$lang.colon}</span> 
				<!--{foreach from=$hot_keywords item=keyword name=fe_keyword}--> 
				<a {if $smarty.foreach.fe_keyword.first == 1}style="color:#ff0000;"{/if} href="{url app=search&keyword=$keyword|escape:url}">{$keyword}</a> 
				<!--{/foreach}--> 
			</div>
		</div>
		<div class="member-nav has-eject-box">
			<div class="title member-nav-title clearfix"> <b></b><a href="{url app=member}">用户中心</a><em></em> </div>
			<div class="shadow"></div>
			<div class="cart-list  eject-box">
				<div class="login-status"> 你好，<!--{if !$visitor.user_id}-->请<a href="{url app=member}">登录</a><!--{else}--><a href="{url app=member}">{$visitor.user_name|escape}</a><a href="{url app=member&act=logout}" class="ml5">[{$lang.logout}]</a><!--{/if}--> 
				</div>
				<div class="member-nav-list">
					<ul class="list1 ls">
						<li><a href="{url app=buyer_order}" target="_blank">我的订单</a></li>
						<li><a href="{url app=buyer_groupbuy}" target="_blank">我的团购</a></li>
						<li><a href="{url app=my_question}" target="_blank">咨询回复</a></li>
						<li><a href="{url app=my_coupon}" target="_blank">优惠券</a></li>
					</ul>
					<ul class="list2 ls">
						<li><a href="{url app=friend}" target="_blank">我的好友</a></li>
						<li><a href="{url app=my_favorite}" target="_blank">我的关注</a></li>
						<li><a href="{url app=member&act=password}" target="_blank">修改密码</a></li>
						<li><a href="{url app=find_password}" target="_blank">找回密码</a></li>
					</ul>
				</div>
				<div class="view-list"> 
					<!--{if $g_history}-->
					<p>我浏览过的商品：</p>
					<ul class="clearfix w-full mt5">
						<!--{foreach from=$g_history item=h name=fe_h}-->
						<li class="float-left"> <a class="border block" href="{url app=goods&id=$h.goods_id}"><img src="{$h.default_image}" alt="{$h.goods_name}" title="{$h.goods_name|escape}"  width="50" height="50"/></a> </li>
						<!--{/foreach}-->
					</ul>
					<!--{else}-->
					<div class="w-full center">暂时没有浏的商品览记录</div>
					<!--{/if}--> 
				</div>
			</div>
		</div>
		<div class="header_cart has-eject-box">
			<div class="title clearfix"> <b></b><a href="{url app=cart}">去购物车结算</a><em></em> </div>
			<div class="shoping"><span class="count-cart">{$cart_goods_kinds}</span></div>
			<div class="shadow"></div>
			<div class="cart-list eject-box"> 
				<!--{if $carts_top.cart_items}-->
				<div class="goods-list">
					<h4>最新加入的商品</h4>
					<!--{foreach from=$carts_top.cart_items item=cart name=fe_cart}-->
					<div {if $smarty.foreach.fe_cart.last}style="border:0px;"{/if} class="clearfix list J_CartItem-{$cart.rec_id}">
						<div class="goods-img"> <a href="{url app=goods&id=$cart.goods_id}" target="_top"><img alt="{$cart.goods_name}" src="{$cart.goods_image}" width="40" height="40"></a> </div>
						<div class="goods-title"> <a title="{$cart.goods_name}" href="{url app=goods&id=$cart.goods_id}" target="_top">{$cart.goods_name}</a> </div>
						<div class="goods-admin">
							<div class="mini-cart-count"><strong class="mini-cart-price J_ItemPrice-{$cart.rec_id}">{$cart.price|price}</strong>× <span class="J_ItemQuantity-{$cart.rec_id}">{$cart.quantity}</span></div>
							<div class="mini-cart-del"><a href="javascript:;" onclick="drop_cart_item({$cart.store_id}, {$cart.rec_id});">删除</a></div>
						</div>
					</div>
					<!--{/foreach}--> 
				</div>
				<div class="total"> <span>共<strong class="J_C_T_GoodsKinds">{$cart_goods_kinds}</strong>件商品</span><span>共计<strong class="J_C_T_Amount">{$carts_top.total_amount|price}</strong></span><br />
					<a href="{url app=cart}">去购物车结算</a> </div>
				<!--{else}-->
				<div class="nogoods clearfix"> <b></b>购物车中还没有商品，赶紧选购吧！ </div>
				<!--{/if}--> 
			</div>
		</div>
	</div>
	<div  class="w-full mall-nav relative {if $index}index{/if}">
		<div class="mall-bg w">
			<ul class="w clearfix">
				<li class="allcategory float-left {if !$index}not-index{/if}"> <a class="allsort">所有商品分类<b></b></a> 
					<!--{if !$index}-->
					<div class="allcategory-list hidden">
						<div class="content clearfix"> 
							<!--{foreach from=$header_gcategories.gcategories item=category name=fe_category}-->
							<div class="item">
								<div class="pborder">
									<p><a href="{url app=search&cate_id=$category.id}" target="_blank">{$category.value|escape}</a><i>&gt;</i><b class="line"></b></p>
								</div>
								<div class="pop" {if $category.top} style="top:{$category.top}"{/if}>
									<div class="catlist float-left"> 
										<!--{foreach from=$category.children item=child name=fe_child}-->
										<dl class="clearfix" {if $smarty.foreach.fe_child.last} style="border-bottom:0"{/if}>
											<dt class="float-left"><a href="{url app=search&cate_id=$child.id}"><strong>{$child.value|escape}</strong></a></dt>
											<dd class="float-left"> 
												<!--{foreach from=$child.children item=child2 name=fe_child2}--> 
												<a href="{url app=search&cate_id=$child2.id}">{$child2.value|escape}</a> 
												<!--{/foreach}--> 
											</dd>
										</dl>
										<!--{/foreach}--> 
									</div>
									<div class="catbrand float-left"> <a class="btn-channel" href="{url app=search&cate_id=$category.id}">{$category.value|escape|truncate:16}<ins></ins></a>
										<ul class="clearfix mb10">
											<!-- {foreach from=$category.brands item=brand name=fe_brand} -->
											<li class="float-left"><a href="{url app=search&brand=$brand.brand_name|escape:url}" title="{$brand.brand_name}"><img src="{$brand.brand_logo}" alt="{$brand.brand_name|escape}"/></a></li>
											<!-- {/foreach} -->
										</ul>
										<p> 
											<!--{foreach from=$category.gads item=ads name=fe_ads}--> 
											<a href="{$ads.link_url}" target="_blank" class="mb10"><img src="{$ads.file_path}" width="180" height="140" /></a> 
											<!--{/foreach}--> 
										</p>
									</div>
								</div>
							</div>
							<!--{/foreach}--> 
						</div>
					</div>
					<!--{/if}--> 
				</li>
				<li class="each float-left inline-block"><a class="{if $index}current{/if}" href="{$site_url}">{$lang.home}</a></li>
				<!--{foreach from=$navs.middle item=nav name=fe_nav}-->
				<li class="each float-left inline-block"><a class="{if !$index and $nav.link eq $current_url}current{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}{if $smarty.foreach.fe_nav.iteration eq 1}<span class="absolute block"></span>{/if}</a></li>
				<!--{/foreach}--> 
				<!--{if $index}-->
				<li class="float-right nav-ads"> <a href="{$site_url}"><img src="static/images/557e2972N64f12687.jpg" /></a> </li>
				<!--{/if}-->
			</ul>
		</div>
	</div>
</div>
